//商品
$goodsw:452px;
$goods_title_w:60px;
.goods{
  width: $goodsw;
  background: $grey;
  @include border-radius();
  position: relative;
  .goods-title{
    text-align: center;
    background: $bg_grey;
    h4{
      position: relative;
      padding: 0 16px;
      @include hei(60px);
      display: inline;
      font-weight: normal;
      font-size: 18px;
      color:$grey;
      letter-spacing: 1px;
      &:before,&:after{
        content: '';
        display: inline-block;
        width: $goods_title_w;
        height: 1px;
        background: $borderColor;
        top:calc(50% - 0.5px);
        position: absolute;
        z-index: 9;
      }
      &:before{
        left:-$goods_title_w
      }
      &:after{
        right: -$goods_title_w
      }
    }
  }
  .goods-body{
    .goods-cont{
      position: relative;
      .goods-left {
        padding: 16px;
        position: relative;
        background: #fff;
        .goods-cont-title {
          padding-bottom: 16px;
          .name {
            padding: 0 8px;
            display: inline-block;
            border-left: 3px solid $orange;
            font-size: 14px;
          }
        }
        .goods-service-p{
          p{
            line-height: 32px;
            text-indent: 10px;
          }
        }
        .goods-service-pic{
          text-align: center;
          .name{
            @include textover;
            padding: 8px;
            max-width: calc(100% - 16px);
          }
          .goods-pic{
            width: 185px;
            height:135px;
            overflow: hidden;
          }
        }
        .goods-hover{
          background: rgba(0,0,0,.34);
          position: absolute;
          top:0;
          left:0;
          right:0;
          bottom:0;
          z-index: 99;
          display: none;
          justify-content: center;
          align-items: center;
          .btn-link-edit{
            position: absolute;
            top:16px;
            right:16px;
            z-index: 99;
            a{
              margin:5px 0 5px 8px;
              color:#fff;
            }
          }
          .btn-cont-edit{
            position: relative;
            z-index: 99;
            .btn-edit{
              padding: 8px 24px;
              border:1px dashed #fff;
              @include border-radius();
              color:#fff;
              &:hover{
                background:rgba(255,255,255,.8);
                border:1px solid rgba(255,255,255,.8);
                color:$blue;
              }
            }
          }
          &:before{
            content: '';
            position: absolute;
            top:0;
            left:-1px;
            right:-1px;
            bottom:-1px;
            z-index: 1;
            border:1px dashed $red;
          }
          &.hover{
            display: flex;
          }
        }
        &:hover,&.active{
          .goods-hover{
            display: flex;
          }
        }
        &.goods-ban{
          width: 100%;
          img{
            display: block;
            width: 100%;
            @include border-radius();
          }
        }
      }
      .goods-right,.goods-right-add{
        position: absolute;
        width: 100%;
        left:480px;
        top:0;
        z-index: 99;
        background:$bg_grey;
        padding: 16px;
        @include border-radius();
        &:before{
          content: '';
          width: 0;
          height: 0;
          border-top: 16px solid transparent;
          border-right: 16px solid $bg_grey;
          border-bottom: 16px solid transparent;
          display: inline-block;
          left: -10px;
          top: 20px;
          position: absolute;
          z-index: 9;
        }
        h4{
          text-align: center;
          font-size: 16px;
          font-weight: bold;
          padding-bottom: 16px;
        }
        .goods-right-banner{
          text-align: center;
          .banner-img{
            display: inline-block;
            overflow: hidden;
            height: 150px;
            position: relative;
          }
          .upfile{
            position: absolute;
            top:0;
            left:0;
            right:0;
            bottom:0;
            display: flex;
            background: rgba(0,0,0,.34);
            justify-content: center;
            align-items: center;
            .upfile-btn {
              padding:8px 24px;
              border:1px dashed #fff;
              @include border-radius();
              color:#fff;
              position: relative;
              line-height: 1.2;
              input[type="file"] {
                @include opacity(0);
                text-indent: 9999px;
                position: absolute;
                top:0;
                left:0;
                right:0;
                bottom:0;
                z-index: 99;
                cursor: pointer;
              }
              &:hover{
                background:rgba(255,255,255,.8);
                border:1px solid rgba(255,255,255,.8);
                color:$blue;
              }
            }
          }
        }
        .goods-right-xiaotu{
          .banner-img{
            height: 135px;
            img{
              //height: 100%;
            }
          }
        }
        .goods-right-standard{
          position: relative;
          .icon-close{
            position: absolute;
            top:8px;
            right:8px;
            z-index: 9;
            cursor: pointer;
            display: none;
            //background:$red;
            //color:#fff;
            //width: 24px;
            //@include hei(24px);
            //@include border-radius(100%);
            //display: block;
            //text-align: center;
            //@include transition(All,0.4s,ease-in-out);
            .anticon{
              font-size: 16px;
              color:$red;
            }
            &:hover{
              //@include css3(transform,rotate(180deg));
            }
          }
          &:hover{
            .icon-close{
              display: block
            }
          }
        }
        .tips-p{
          text-align: center;
          padding-top: 8px;
        }
        .ant-table{
          background: #fff;
          .ant-input.wid-small{
            max-width: 90px;
          }
        }
        .goods-right-template{
          margin:8px 0;
          .ant-col-6{
            text-align: center;
          }
          .template-link{
            display: block;
            padding:16px 32px;
            border:1px solid $blue;
            @include border-radius();
            height: auto;
            font-size: 14px;
            //&:hover{
            //  background: $blue;
            //  color:#fff;
            //}
          }
        }
        .goods-xiaotu-height{
          max-height: 336px;
          overflow-x: hidden;
          overflow-y: auto;
        }
        &.goods-right-pr0{
          padding-right: 0;
        }
      }
      &.goods-cont-bottom{
        .goods-right{
          top:auto;
          bottom:0;
          &:before{
            top:auto;
            bottom:20px;
          }
        }
      }
    }
  }
}
.slip-cont-b{
  .goods{
    border:1px solid lighten($borderColor,5%);
    .goods-title{
      @include border-radius(4px 4px 0 0);
    }
    .goods-cont{
      &:last-child{
        .goods-left {
          @include border-radius(0 0 4px 4px);
        }
      }
    }
  }
}